package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生考试试题
 */
@Data
public class StudentExamQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 学生考试id
     */
    private Integer studentExamId;

    /**
     * 题目所属区域id
     */
    private Integer areaId;

    /**
     * 题目id
     */
    private Integer questionId;

    /**
     * 当前试题分数
     */
    private Double score;

    /**
     * 学生答案
     */
    private String answer;

    /**
     * 是否正确
     */
    private Boolean ifRight;

    /**
     * 题目顺序
     */
    private Integer sort;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 学生答案（问答题、填空题）
     */
    private String subjectiveAnswer;
    /**
     * 评阅得分
     */
    private Double subjectiveScore;

    /**
     * 材料题目id
     */
    private Integer materialQuestionId;

}